﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ResourceBlender.Express {
    /// <summary>
    /// A ToolWindow for showing FlowDocuments.
    /// </summary>
    public partial class WinFlowDocument : Window {
        /// <summary>
        /// Initializes a new <see cref="WinFlowDocument"/>.
        /// </summary>
        /// <param name="caption">The window caption.</param>
        /// <param name="doc">The document to show.</param>
        public WinFlowDocument(string caption, FlowDocument doc) {
            InitializeComponent();
            this.Title = caption;
            message.Document = doc;
        }
    }
}
